package com.mohansever.util;

public enum ErrStatusEnum {
	
	SUCCESS(2000,"成功"),
	LOGINERR(2001,"用户名或密码错误"),
	SYSERR(2002,"系统错误"),
	USERDISABLE(2003,"用户被禁用"),
	PARMERR(2004,"参数错误"),
	NOLOGIN(2005,"请先登录"),
	TOKENERR(2006,"验证码错误"),
	POWERERR(2007,"权限不够"),
	NOTARGET(2008,"目标不存在"),
	WXLOGINERR(2009,"微信登录失败");
	
	private int code;
	private String message;
	
	private ErrStatusEnum(int code, String message){
		this.code = code;
		this.message = message;
	}

	public int getCode() {
		return code;
	}

	public String getMessage() {
		return message;
	}
}
